package com.ujs.shc.service;

import com.ujs.shc.pojo.Image;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ImageService {

    /**
     * 通过商品id获取该商品的图片
     * @param goodsId
     * @return
     */
    public List<Image> getImagesByGoodsPrimaryKey(Integer goodsId);

    /**
     * 添加图片
     * @param image
     * @return
     */
    public Integer addImage(Image image, HttpServletRequest request,MultipartFile file);

}
